package com.swjd.service.impl;

import com.swjd.dao.UserDao;
import com.swjd.pojo.User;
import com.swjd.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public List<User> getUserList() {
        return (List<User>) userDao.findAll();

    }

}
